<script setup lang="ts">

import MyButton from "@/components/common/myButton.vue";
import {ref} from "vue";
import {useRoute, useRouter} from "vue-router";
const enterpriseName = ref();
const props = defineProps({
  eName: {
    type: String,
    required: true
  }
});
const router = useRouter()
const route = useRoute()
const handleClick = () => {
  router.push({
    path: '/position',
    query: {
      id: route.query.enterpriseId,
    }
  })
}
</script>

<template>
  <span class="career-recommend-wrapper">
    看看{{props.eName}}有哪些岗位适合你
    <my-button style="margin-top: 10px" type="light" @click="handleClick">
      查看岗位
    </my-button>
  </span>
</template>

<style scoped>
.career-recommend-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 200px;
  /*margin-left: 30px;*/
  border-radius: 15px;
  background-color: white;
  border: 2px solid var(--color-plain);
}

</style>